import request from '@/utils/request'

// 查询幻灯片子项表列表
export function listItem(query) {
  return request({
    url: '/slide/item/list',
    method: 'get',
    params: query
  })
}

// 查询幻灯片子项表详细
export function getItem(slideItemId) {
  return request({
    url: '/slide/item/' + slideItemId,
    method: 'get'
  })
}

// 新增幻灯片子项表
export function addItem(data) {
  return request({
    url: '/slide/item/create',
    method: 'post',
    data: data
  })
}

// 修改幻灯片子项表
export function updateItem(slideItemId,data) {
  return request({
    url: '/slide/item/update/' + slideItemId,
    method: 'post',
    data: data
  })
}

// 删除幻灯片子项表
export function delItem(slideItemId) {
  return request({
    url: '/slide/item/' + slideItemId,
    method: 'delete'
  })
}
